package com.newspublish.system.service;

import com.newspublish.system.entity.system.Category;
import com.newspublish.system.utils.result.Result;

import java.util.List;

public interface CategoryService {

    //添加分类
    public Result addCategory(Category category);

    //删除分类 支持批量删除
    public Result deleteCategory(Long id);

    //修改分类
    public Result updateCategory(Category category);

    //获取所有分类
    public Result getAllCategory();

    //根据主键获取分类信息
    public Result getByPrimaryKey(Long id);

}
